<%--赵筠高雅--%>

<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2024/6/12
  Time: 8:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Mentor接口测试</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        .container {
            width: 80%;
            margin: auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin-top: 50px;
        }
        h1 {
            text-align: center;
            color: #333;
        }
        form {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
        }
        label {
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"], select, textarea {
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 5px;
            border: 1px solid #ddd;
        }
        input[type="submit"] {
            padding: 10px 20px;
            background-color: #348a16;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .response {
            margin-top: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
            background-color: #f9f9f9;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>Mentor接口测试</h1>
    <form action="apitest" method="post">
        <label for="url">URL:</label>
        <input type="text" id="url" name="url" required>
        <label for="method">请求方法:</label>
        <select id="method" name="method">
            <option value="GET">GET</option>
            <option value="POST">POST</option>
        </select>
        <label for="requestBody">Request Body:</label>
        <textarea id="requestBody" name="requestBody" rows="2"></textarea>
        <input type="submit" value="发送请求">
    </form>
    <div class="response">
        <h2>Response:</h2>
        <pre>${responseBody}</pre>
    </div>
</div>
</body>
</html>

